package br.gov.serpro.curso.projeto.wishlist;

import br.serpro.curso.projeto.db.DBOpenHelper;
import android.app.Application;
import android.database.sqlite.SQLiteDatabase;

public class WishlistApp extends Application {
	private static DBOpenHelper dbHelper;
	
	@Override
	public void onCreate() {
		super.onCreate();
		dbHelper = new DBOpenHelper(getApplicationContext(),DBOpenHelper.BANCO, null, 1);		
	}
	
	public static SQLiteDatabase getConexao(){
		return dbHelper.getReadableDatabase();
	}
	
}
